package com.home.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.home.entity.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {
    //    int deleteByPrimaryKey(Integer id);
//
//    int insert(Employee record);
//
    int insertSelective(Employee record);
//
//    Employee selectByPrimaryKey(Integer id);
//
//    int updateByPrimaryKeySelective(Employee record);
//
//    int updateByPrimaryKey(Employee record);

    List<Employee> getEmployeeByPage(@Param("page") Integer page, @Param("size") Integer size,
                                     @Param("emp") Employee employee,
                                     @Param("beginDateScope") Date[] beginDateScope);

    Long getTotal(@Param("emp") Employee employee, @Param("beginDateScope") Date[] beginDateScope);

    Integer getMaxWorkID();

    Employee getAllEmpsById(Integer id);

    List<Employee> getEmployeeByPageWithSalary(Integer page, Integer size);

    Integer updateEmployeeSalaryById(Integer eid, Integer sid);
}